home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13992 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: netnews.ntu.edu.tw!news
  2. From: ben@water.ee.nsysu.edu.tw (Benjamin Han)
  3. Newsgroups: comp.lang.c++
  4. Subject: HELP on CodeGuard!!
  5. Date: Thu, 28 Mar 1996 10:44:45 GMT
  6. Organization: AI lab, dept. of E.E., NSYSU.
  7. Message-ID: <315a699f.2871751@netnews.ntu.edu.tw>
  8. Reply-To: ben@water.ee.nsysu.edu.tw
  9. NNTP-Posting-Host: @ben.ee.nsysu.edu.tw
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. I'm currently involved in an AI project using Borland C++ 4.53 with CodeGuard
  13. (CG) 1.0. During the debugging process CG reported there's a memory leak in my
  14. code as follows:
  15.  
  16. ===============================================================
  17. Error 00001. 0x300010:
  18. Resource leak: The memory block (0x40FF0AEE) was never freed
  19.  
  20. The memory block (0x40FF:0AEE) [size: 20 bytes] was allocated with malloc
  21. Call Tree:
  22.    0x0EF7:8717(=DGTEST.EXE:0x01:8717)
  23.    0x0EF7:0157(=DGTEST.EXE:0x01:0157)
  24. ===============================================================
  25.  
  26. But the odd thing is, I didn't use any malloc function to allocate any memory
  27. block! All of my source code is in C++. I tried to check the corresponding map
  28. file but couldn't find the error spot (0x01:8717). Would anyone please give me
  29. some suggestions on this? I'm stuck. Thank you in advance.
  30.  
  31.  
  32. Benjamin Han
  33. ben@water.ee.nsysu.edu.tw
  34.  
  35. Dept. of E.E., National Sun Yat-sen Univ.
  36. Taiwan.
  37.